home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1MKCM7F (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.1 KB  |  31 lines

  1. package com.ibm.uvm.awt;
  2.  
  3. import com.ibm.uvm.messages.MsgUVM;
  4. import java.awt.Component;
  5. import java.awt.Graphics;
  6. import java.awt.image.ImageProducer;
  7. import sun.awt.image.Image;
  8. import sun.awt.image.ImageRepresentation;
  9.  
  10. public class UvmImage extends Image {
  11.    public UvmImage(Component c, int w, int h) {
  12.       super(c, w, h);
  13.    }
  14.  
  15.    public UvmImage(ImageProducer producer) {
  16.       super(producer);
  17.    }
  18.  
  19.    public Graphics getGraphics() {
  20.       throw new IllegalAccessError(MsgUVM.getString("only_createimage"));
  21.    }
  22.  
  23.    protected ImageRepresentation getImageRep() {
  24.       return super.getImageRep();
  25.    }
  26.  
  27.    protected ImageRepresentation makeImageRep() {
  28.       return new ImageRepresentation(this, -1, -1, 0);
  29.    }
  30. }
  31.